using System;
using System.Collections.Generic;
using System.Text;
using FluentNHibernate.Mapping;
using Water.Model;

namespace Water.Data.Repositories.Mappings
{
    public class BigValvePileOfNoMap : ClassMap<BigValvePileOfNo>
    {

        public BigValvePileOfNoMap()
        {
            Table("Tbt_BigValvePileOfNo");
            Id(x => x.MRNO).GeneratedBy.Assigned().Column("MRNO");
            Map(x => x.EpcNo).Column("EpcNO").Not.Nullable();
            References<Valve>(x => x.Ve, "EpcNO").PropertyRef(e => e.EpcNO).ReadOnly();
            Map(x => x.InspectioZk).Column("InspectioZk").Not.Nullable();
            Map(x => x.InspectionEmp).Column("InspectionEmp").Not.Nullable();
            Map(x => x.InspectionDt).Column("InspectionDt").Not.Nullable();
            Map(x => x.StartWorkDt).Column("StartWorkDt");
            Map(x => x.FinishWorkDt).Column("FinishWorkDt");
            Map(x => x.Memo).Column("Memo");
            Map(x => x.CreateDt).Column("CreateDt").ReadOnly();
        }
    }
}
